# import requests
# import pytest
#
# login_data = [("", "123456",510,"登入名不能为空"),
#               ("123456", "123456",500,"请输入正确的手机号!"),
#               ("13112345678", "123456",500,"登入失败"),
#               ("", "",510,"密码不能为空")]
#
# @pytest.mark.parametrize("username,passwd", login_data)
# def test_login(username, passwd):
#     url = "http://49.233.108.117:28019/api/v1/user/login"
#     body = {
#         "loginName": username,
#         "passwordMd5": passwd
#     }
#     r = requests.post(url, json=body)
#     print(r.json())
#     assert r.json()["resultCode"] == excpet_code
#     assert r.json()["message"] == excpet_msg